import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:untitled/base/routers.dart';

class Home extends StatelessWidget {
  Home({Key? key,
    // required this.text
  }) : super(key: key);
  // final String text;

  @override
  Widget build(BuildContext context) {
    // dynamic args=ModalRoute.of(context)?.settings.arguments;
    return Container(
      color: Colors.white,
      child: Column(
        children: <Widget>[
          // Text(args),
          RaisedButton(
            onPressed: () => JRoutes.skipToPage(context, JRoutes.mine, {"title" : "1"}),
            child: Text("跳转到mine"),
          ),
          RaisedButton(
            onPressed: () => JRoutes.skipToPage(context, JRoutes.layout),
            child: Text("跳转到layout"),
          ),
          RaisedButton(
            onPressed: () => JRoutes.skipToPage(context, JRoutes.basis),
            child: Text("跳转到basis"),
          ),
          RaisedButton(
            onPressed: () => JRoutes.skipToPage(context, JRoutes.vessel),
            child: Text("跳转到vessel"),
          )
        ],
      ),
    );
  }
}
